<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>bn::sprite_affine_mat_ptr class | Butano Docs</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
  <link rel="stylesheet" href="m-dark+documentation.compiled.css" />
  <link rel="icon" href="favicon-dark.png" type="image/png" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="theme-color" content="#22272e" />
</head>
<body>
<header><nav id="navigation">
  <div class="m-container">
    <div class="m-row">
      <span id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">
        <a href="https://github.com/GValiente/butano">Butano</a> <span class="m-breadcrumb">|</span> <a href="index.html" class="m-thin">Docs</a>
      </span>
      <div class="m-col-t-4 m-hide-m m-text-right m-nopadr">
        <a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
          <path id="m-doc-search-icon-path" d="m6 0c-3.31 0-6 2.69-6 6 0 3.31 2.69 6 6 6 1.49 0 2.85-0.541 3.89-1.44-0.0164 0.338 0.147 0.759 0.5 1.15l3.22 3.79c0.552 0.614 1.45 0.665 2 0.115 0.55-0.55 0.499-1.45-0.115-2l-3.79-3.22c-0.392-0.353-0.812-0.515-1.15-0.5 0.895-1.05 1.44-2.41 1.44-3.89 0-3.31-2.69-6-6-6zm0 1.56a4.44 4.44 0 0 1 4.44 4.44 4.44 4.44 0 0 1-4.44 4.44 4.44 4.44 0 0 1-4.44-4.44 4.44 4.44 0 0 1 4.44-4.44z"/>
        </svg></a>
        <a id="m-navbar-show" href="#navigation" title="Show navigation"></a>
        <a id="m-navbar-hide" href="#" title="Hide navigation"></a>
      </div>
      <div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
        <div class="m-row">
          <ol class="m-col-t-6 m-col-m-none">
            <li><a href="pages.html">Pages</a></li>
            <li><a href="modules.html">Modules</a></li>
          </ol>
          <ol class="m-col-t-6 m-col-m-none" start="3">
            <li><a href="namespaces.html">Namespaces</a></li>
            <li><a href="annotated.html">Classes</a></li>
            <li><a href="files.html">Files</a></li>
            <li class="m-show-m"><a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
              <use href="#m-doc-search-icon-path" />
            </svg></a></li>
          </ol>
        </div>
      </div>
    </div>
  </div>
</nav></header>
<main><article>
  <div class="m-container m-container-inflatable">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <h1>
          <span class="m-breadcrumb"><a href="namespacebn.html">bn</a>::<wbr/></span>sprite_affine_mat_ptr <span class="m-thin">class</span>
          <div class="m-doc-include m-code m-inverted m-text-right"><span class="cp">#include</span> <a class="cpf" href="bn__sprite__affine__mat__ptr_8h.html">&lt;bn_sprite_affine_mat_ptr.h&gt;</a></div>
        </h1>
        <p>std::shared_ptr like smart pointer that retains shared ownership of a sprite affine transformation matrix.</p>
        <nav class="m-block m-default">
          <h3>Contents</h3>
          <ul>
            <li>
              Reference
              <ul>
                <li><a href="#pub-static-methods">Public static functions</a></li>
                <li><a href="#typeless-methods">Constructors, destructors, conversion operators</a></li>
                <li><a href="#pub-methods">Public functions</a></li>
                <li><a href="#friends">Friends</a></li>
              </ul>
            </li>
          </ul>
        </nav>
<p>Several <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> objects may own the same sprite affine transformation matrix.</p><p>The sprite affine transformation matrix is released when the last remaining <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> owning it is destroyed.</p>
        <section id="pub-static-methods">
          <h2><a href="#pub-static-methods">Public static functions</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a4c0b4f904bb847086109dc8a8ed1b8a7" class="m-doc">create</a>(</span><span class="m-doc-wrap">) -&gt; <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a></span>
            </dt>
            <dd>Creates an identity affine transformation matrix.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a4b8db6606454d7d066f49da5b87666b4" class="m-doc">create</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a>&amp; attributes) -&gt; <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a></span>
            </dt>
            <dd>Creates an affine transformation matrix with the specified attributes.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a5252f259fe4e26f470a57105853eaf2c" class="m-doc">create_optional</a>(</span><span class="m-doc-wrap">) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Creates an identity affine transformation matrix.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#ab4cb4738d4750b2b45ba7dd4554a70b1" class="m-doc">create_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a>&amp; attributes) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Creates an affine transformation matrix with the specified attributes.</dd>
          </dl>
        </section>
        <section id="typeless-methods">
          <h2><a href="#typeless-methods">Constructors, destructors, conversion operators</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#a51e0099188efe449239cae83f9642176" class="m-doc">sprite_affine_mat_ptr</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; other)</span>
            </dt>
            <dd>Copy constructor.</dd>
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#a54aa856bb3af120b747816998bce7f37" class="m-doc">sprite_affine_mat_ptr</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp;&amp; other) <span class="m-label m-flat m-success">noexcept</span></span>
            </dt>
            <dd>Move constructor.</dd>
            <dt id="aa1ec09b57765d63ee1defa5d1002b9d8">
              <span class="m-doc-wrap-bumper"><a href="#aa1ec09b57765d63ee1defa5d1002b9d8" class="m-doc-self">~sprite_affine_mat_ptr</a>(</span><span class="m-doc-wrap">)</span>
            </dt>
            <dd>Releases the referenced sprite affine transformation matrix if no more <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> objects reference to it.</dd>
          </dl>
        </section>
        <section id="pub-methods">
          <h2><a href="#pub-methods">Public functions</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#aa7eb3fb9997ab19dcba5e44cd740a5fe" class="m-doc">operator=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; other) -&gt; <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp;</span>
            </dt>
            <dd>Copy assignment operator.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ad44efdf7dcfb4b5c6ea1e1201ffe6334" class="m-doc">operator=</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp;&amp; other) -&gt; <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; <span class="m-label m-flat m-success">noexcept</span></span>
            </dt>
            <dd>Move assignment operator.</dd>
            <dt id="ab171395d7416e768a5854b04ec749030">
              <span class="m-doc-wrap-bumper">auto <a href="#ab171395d7416e768a5854b04ec749030" class="m-doc-self">id</a>(</span><span class="m-doc-wrap">) const -&gt; int</span>
            </dt>
            <dd>Returns the internal id.</dd>
            <dt id="a7dd1899ed7af8423b2350e4d5797c4c4">
              <span class="m-doc-wrap-bumper">auto <a href="#a7dd1899ed7af8423b2350e4d5797c4c4" class="m-doc-self">rotation_angle</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a></span>
            </dt>
            <dd>Returns the rotation angle in degrees.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a7502d3ac86588149bc9f361d80af9d72" class="m-doc">set_rotation_angle</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle)</span>
            </dt>
            <dd>Sets the rotation angle in degrees.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#af4d06250f22d62ad11dba6b4c91252bf" class="m-doc">set_rotation_angle_safe</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle)</span>
            </dt>
            <dd>Sets the rotation angle in degrees.</dd>
            <dt id="a5be88502fef7f68de90137ff9d37f038">
              <span class="m-doc-wrap-bumper">auto <a href="#a5be88502fef7f68de90137ff9d37f038" class="m-doc-self">horizontal_scale</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a></span>
            </dt>
            <dd>Returns the horizontal scale.</dd>
            <dt id="a8ad5fee639d3e6366cd1ce4708a14aae">
              <span class="m-doc-wrap-bumper">void <a href="#a8ad5fee639d3e6366cd1ce4708a14aae" class="m-doc-self">set_horizontal_scale</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_scale)</span>
            </dt>
            <dd>Sets the horizontal scale.</dd>
            <dt id="a118847539858f9bf71f6fc918c03018d">
              <span class="m-doc-wrap-bumper">auto <a href="#a118847539858f9bf71f6fc918c03018d" class="m-doc-self">vertical_scale</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a></span>
            </dt>
            <dd>Returns the vertical scale.</dd>
            <dt id="a156e63532fdedb6c12b314a782680ec5">
              <span class="m-doc-wrap-bumper">void <a href="#a156e63532fdedb6c12b314a782680ec5" class="m-doc-self">set_vertical_scale</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_scale)</span>
            </dt>
            <dd>Sets the vertical scale.</dd>
            <dt id="acf5bb0f074c23131cfe516ac99c4e06e">
              <span class="m-doc-wrap-bumper">void <a href="#acf5bb0f074c23131cfe516ac99c4e06e" class="m-doc-self">set_scale</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> scale)</span>
            </dt>
            <dd>Sets the scale.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#ae6d411d74e6fc74c57675e866ddf2bfe" class="m-doc">set_scale</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_scale,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_scale)</span>
            </dt>
            <dd>Sets the scale.</dd>
            <dt id="a0a736e326a20d7575968e517648dd388">
              <span class="m-doc-wrap-bumper">auto <a href="#a0a736e326a20d7575968e517648dd388" class="m-doc-self">horizontal_shear</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a></span>
            </dt>
            <dd>Returns the horizontal shear.</dd>
            <dt id="a957c6720f5920742cbd902c247955e7d">
              <span class="m-doc-wrap-bumper">void <a href="#a957c6720f5920742cbd902c247955e7d" class="m-doc-self">set_horizontal_shear</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_shear)</span>
            </dt>
            <dd>Sets the horizontal shear.</dd>
            <dt id="a3ee135f42bf0bfad34b1537393002acb">
              <span class="m-doc-wrap-bumper">auto <a href="#a3ee135f42bf0bfad34b1537393002acb" class="m-doc-self">vertical_shear</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a></span>
            </dt>
            <dd>Returns the vertical shear.</dd>
            <dt id="a49ec8780001687a31a7e7260cd910884">
              <span class="m-doc-wrap-bumper">void <a href="#a49ec8780001687a31a7e7260cd910884" class="m-doc-self">set_vertical_shear</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_shear)</span>
            </dt>
            <dd>Sets the vertical shear.</dd>
            <dt id="a7371bfe6d5d8d01075e8eb32c500a0c1">
              <span class="m-doc-wrap-bumper">void <a href="#a7371bfe6d5d8d01075e8eb32c500a0c1" class="m-doc-self">set_shear</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> shear)</span>
            </dt>
            <dd>Sets the shear.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a5048effe4e1a00eac7986f2d42ee590a" class="m-doc">set_shear</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_shear,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_shear)</span>
            </dt>
            <dd>Sets the shear.</dd>
            <dt id="ac92cca8a3e21c2905e70c4718e72adef">
              <span class="m-doc-wrap-bumper">auto <a href="#ac92cca8a3e21c2905e70c4718e72adef" class="m-doc-self">horizontal_flip</a>(</span><span class="m-doc-wrap">) const -&gt; bool</span>
            </dt>
            <dd>Indicates if this matrix is flipped in the horizontal axis or not.</dd>
            <dt id="a0a29dff1f7b45b30d889c7edb1b7d9f0">
              <span class="m-doc-wrap-bumper">void <a href="#a0a29dff1f7b45b30d889c7edb1b7d9f0" class="m-doc-self">set_horizontal_flip</a>(</span><span class="m-doc-wrap">bool horizontal_flip)</span>
            </dt>
            <dd>Sets if this matrix is flipped in the horizontal axis or not.</dd>
            <dt id="a96033ef7cccdfab242c6aec8429b6226">
              <span class="m-doc-wrap-bumper">auto <a href="#a96033ef7cccdfab242c6aec8429b6226" class="m-doc-self">vertical_flip</a>(</span><span class="m-doc-wrap">) const -&gt; bool</span>
            </dt>
            <dd>Indicates if this matrix is flipped in the vertical axis or not.</dd>
            <dt id="a4bfda2f573e514b7a985da5a27a0afa6">
              <span class="m-doc-wrap-bumper">void <a href="#a4bfda2f573e514b7a985da5a27a0afa6" class="m-doc-self">set_vertical_flip</a>(</span><span class="m-doc-wrap">bool vertical_flip)</span>
            </dt>
            <dd>Sets if this matrix is flipped in the vertical axis or not.</dd>
            <dt id="a8731a3fa764f16e46e3cf2048ae412f7">
              <span class="m-doc-wrap-bumper">auto <a href="#a8731a3fa764f16e46e3cf2048ae412f7" class="m-doc-self">attributes</a>(</span><span class="m-doc-wrap">) const -&gt; const <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a>&amp;</span>
            </dt>
            <dd>Returns the attributes of this matrix.</dd>
            <dt id="a89bb2f3ef276594a80314b58c6568e3f">
              <span class="m-doc-wrap-bumper">void <a href="#a89bb2f3ef276594a80314b58c6568e3f" class="m-doc-self">set_attributes</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a>&amp; attributes)</span>
            </dt>
            <dd>Sets the attributes of this matrix.</dd>
            <dt id="a64529f222b4fd4a9a8eff29c6a2ae26b">
              <span class="m-doc-wrap-bumper">auto <a href="#a64529f222b4fd4a9a8eff29c6a2ae26b" class="m-doc-self">identity</a>(</span><span class="m-doc-wrap">) const -&gt; bool</span>
            </dt>
            <dd>Indicates if this matrix is equal to the identity matrix or not.</dd>
            <dt id="a297e440d9b4e782f598f7762923e0810">
              <span class="m-doc-wrap-bumper">auto <a href="#a297e440d9b4e782f598f7762923e0810" class="m-doc-self">flipped_identity</a>(</span><span class="m-doc-wrap">) const -&gt; bool</span>
            </dt>
            <dd>Indicates if this matrix is equal to the identity matrix or not, ignoring flip attributes.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#aca815af73180c31d479f30e22588f039" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; other)</span>
            </dt>
            <dd>Exchanges the contents of this <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> with those of the other one.</dd>
          </dl>
        </section>
        <section id="friends">
          <h2><a href="#friends">Friends</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a07af73443e787ce98f985b41025e6552" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; a,
              <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; b)</span>
            </dt>
            <dd>Exchanges the contents of a <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> with those of another one.</dd>
            <dt id="a8731214def5b3496068ca2a097a7e859">
              <span class="m-doc-wrap-bumper">auto <a href="#a8731214def5b3496068ca2a097a7e859" class="m-doc-self">operator==</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; a,
              const <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; b) -&gt; bool <span class="m-label m-flat m-info">defaulted</span></span>
            </dt>
            <dd>Default equal operator.</dd>
          </dl>
        </section>
        <section>
          <h2>Function documentation</h2>
          <section class="m-doc-details" id="a4c0b4f904bb847086109dc8a8ed1b8a7"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a4c0b4f904bb847086109dc8a8ed1b8a7" class="m-doc-self">create</a>(</span><span class="m-doc-wrap">)</span></span>
            </h3>
            <p>Creates an identity affine transformation matrix.</p>
            <table class="m-table m-fullwidth m-flat">
              <tfoot>
                <tr>
                  <th style="width: 1%">Returns</th>
                  <td>The requested <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a4b8db6606454d7d066f49da5b87666b4"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a4b8db6606454d7d066f49da5b87666b4" class="m-doc-self">create</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a>&amp; attributes)</span></span>
            </h3>
            <p>Creates an affine transformation matrix with the specified attributes.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">attributes</td>
                  <td><a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a> of the output matrix.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>The requested <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a5252f259fe4e26f470a57105853eaf2c"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&gt; bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a5252f259fe4e26f470a57105853eaf2c" class="m-doc-self">create_optional</a>(</span><span class="m-doc-wrap">)</span></span>
            </h3>
            <p>Creates an identity affine transformation matrix.</p>
            <table class="m-table m-fullwidth m-flat">
              <tfoot>
                <tr>
                  <th style="width: 1%">Returns</th>
                  <td>The requested <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> if it could be allocated; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ab4cb4738d4750b2b45ba7dd4554a70b1"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&gt; bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ab4cb4738d4750b2b45ba7dd4554a70b1" class="m-doc-self">create_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a>&amp; attributes)</span></span>
            </h3>
            <p>Creates an affine transformation matrix with the specified attributes.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">attributes</td>
                  <td><a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a> of the output matrix.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>The requested <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> if it could be allocated; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a51e0099188efe449239cae83f9642176"><div>
            <h3>
              <span class="m-doc-wrap-bumper"> bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a51e0099188efe449239cae83f9642176" class="m-doc-self">sprite_affine_mat_ptr</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; other)</span></span>
            </h3>
            <p>Copy constructor.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> to copy.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a54aa856bb3af120b747816998bce7f37"><div>
            <h3>
              <span class="m-doc-wrap-bumper"> bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a54aa856bb3af120b747816998bce7f37" class="m-doc-self">sprite_affine_mat_ptr</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp;&amp; other) <span class="m-label m-success">noexcept</span></span></span>
            </h3>
            <p>Move constructor.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> to move.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="aa7eb3fb9997ab19dcba5e44cd740a5fe"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aa7eb3fb9997ab19dcba5e44cd740a5fe" class="m-doc-self">operator=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; other)</span></span>
            </h3>
            <p>Copy assignment operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> to copy.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ad44efdf7dcfb4b5c6ea1e1201ffe6334"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ad44efdf7dcfb4b5c6ea1e1201ffe6334" class="m-doc-self">operator=</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp;&amp; other) <span class="m-label m-success">noexcept</span></span></span>
            </h3>
            <p>Move assignment operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> to move.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a7502d3ac86588149bc9f361d80af9d72"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a7502d3ac86588149bc9f361d80af9d72" class="m-doc-self">set_rotation_angle</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle)</span></span>
            </h3>
            <p>Sets the rotation angle in degrees.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">rotation_angle</td>
                  <td>Rotation angle in degrees, in the range [0..360].</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="af4d06250f22d62ad11dba6b4c91252bf"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#af4d06250f22d62ad11dba6b4c91252bf" class="m-doc-self">set_rotation_angle_safe</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle)</span></span>
            </h3>
            <p>Sets the rotation angle in degrees.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">rotation_angle</td>
                  <td>Rotation angle in degrees, in any range.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="ae6d411d74e6fc74c57675e866ddf2bfe"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ae6d411d74e6fc74c57675e866ddf2bfe" class="m-doc-self">set_scale</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_scale,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_scale)</span></span>
            </h3>
            <p>Sets the scale.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">horizontal_scale</td>
                  <td>Horizontal scale.</td>
                </tr>
                <tr>
                  <td>vertical_scale</td>
                  <td>Vertical scale.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a5048effe4e1a00eac7986f2d42ee590a"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a5048effe4e1a00eac7986f2d42ee590a" class="m-doc-self">set_shear</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_shear,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_shear)</span></span>
            </h3>
            <p>Sets the shear.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">horizontal_shear</td>
                  <td>Horizontal shear.</td>
                </tr>
                <tr>
                  <td>vertical_shear</td>
                  <td>Vertical shear.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="aca815af73180c31d479f30e22588f039"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />sprite_affine_mat_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aca815af73180c31d479f30e22588f039" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; other)</span></span>
            </h3>
            <p>Exchanges the contents of this <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> with those of the other one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a07af73443e787ce98f985b41025e6552"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a07af73443e787ce98f985b41025e6552" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; a,
              <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a>&amp; b)</span></span>
            </h3>
            <p>Exchanges the contents of a <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> with those of another one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> to exchange the contents with.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second <a href="classbn_1_1sprite__affine__mat__ptr.html" class="m-doc">sprite_<wbr />affine_<wbr />mat_<wbr />ptr</a> to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
        </section>
      </div>
    </div>
  </div>
</article></main>
<div class="m-doc-search" id="search">
  <a href="#!" onclick="return hideSearch()"></a>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-m-8 m-push-m-2">
        <div class="m-doc-search-header m-text m-small">
          <div><span class="m-label m-default">Tab</span> / <span class="m-label m-default">T</span> to search, <span class="m-label m-default">Esc</span> to close</div>
          <div id="search-symbolcount">&hellip;</div>
        </div>
        <div class="m-doc-search-content">
          <form>
            <input type="search" name="q" id="search-input" placeholder="Loading &hellip;" disabled="disabled" autofocus="autofocus" autocomplete="off" spellcheck="false" />
          </form>
          <noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.</noscript>
          <div id="search-help" class="m-text m-dim m-text-center">
            <p class="m-noindent">Search for symbols, directories, files, pages or
            modules. You can omit any prefix from the symbol or file path; adding a
            <code>:</code> or <code>/</code> suffix lists all members of given symbol or
            directory.</p>
            <p class="m-noindent">Use <span class="m-label m-dim">&darr;</span>
            / <span class="m-label m-dim">&uarr;</span> to navigate through the list,
            <span class="m-label m-dim">Enter</span> to go.
            <span class="m-label m-dim">Tab</span> autocompletes common prefix, you can
            copy a link to the result using <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">L</span> while <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">M</span> produces a Markdown link.</p>
          </div>
          <div id="search-notfound" class="m-text m-warning m-text-center">Sorry, nothing was found.</div>
          <ul id="search-results"></ul>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="search-v2.js"></script>
<script src="searchdata-v2.js" async="async"></script>
<footer><nav>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <p>Butano Docs. Created with <a href="https://doxygen.org/">Doxygen</a> 1.14.0 and <a href="https://mcss.mosra.cz/">m.css</a>.</p>
      </div>
    </div>
  </div>
</nav></footer>
</body>
</html>
